#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<stdlib.h>

int main()
{
    int** arr = (int**)malloc(sizeof(int*) * 3);
    for (int i = 0; i < 3; i++)
    {
        arr[i] = (int*)malloc(sizeof(int) * 5);
    }
    for (int i = 0; i < 3; i++)
    {
        for (int j = 0; j < 5; j++)
        {
            arr[i][j] = i + j;
        }
    }
    for (int i = 0; i < 3; i++)
    {
        for (int j = 0; j < 5; j++)
        {
            printf("%d ", arr[i][j]);
        }
        printf("\n");
    }
    return 0;
}